package com.terrapages.wmsc4j.wms;

/**
 * Thrown when there is a needed WMS Request parameter that is not valid
 * @author mvivian
 *
 */
public class InvalidWMSParameterException extends Exception
{
	private static final long serialVersionUID = 1L;

	/**
	 * Constructs the Exception
	 * @param key The key (parameter name) of the request that is invalid eg ("BBOX")
	 * @param value The value of the paramter
	 * @param reason I explination of why the parameter was invalid
	 */
	public InvalidWMSParameterException(String key, String value, String reason) {
		// TODO Auto-generated constructor stub
		super("The WMS request parameter " + value + " is invalid for " + key + " because " + reason);
	}
	
	/**
	 * Constructs the Exception
	 * @param key The key (parameter name) of the request that is invalid eg ("BBOX")
	 * @param reason I explination of why the parameter was invalid
	 */
	public InvalidWMSParameterException(String key, String reason) {
		// TODO Auto-generated constructor stub
		super("The WMS request parameter for " + key + " is invalid because " + reason);
	}
}